home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DJGPP / LGP250S1.ZIP / src / libgplus.5 / libgplus / test-ins / bm.cc < prev    next >
C/C++ Source or Header  |  1992-11-18  |  310b  |  15 lines

  1. #include <errno.h>
  2. #include <stdlib.h>
  3. #include <stdio.h>
  4.  
  5. extern int f();
  6.  
  7. int main()
  8. {
  9.     // We (mis-)use errno supposedly to check that we got a good errno.h
  10.     // and libc.  I don't quite buy it, but what the hell ... --Per
  11.     errno = f();
  12.     fprintf(stderr, "Return-code: %d (should be 1)\n", errno);
  13.     exit(0);
  14. }
  15.